package com.intelligence.openfeign.service.deivce;

import com.intelligence.entity.pojo.DeviceLog;
import com.intelligence.entity.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * deviceLog的openFeign调用接口
 *
 * @Author : RulerWood
 * @Data : 2024/6/3 - 15:37
 */
@FeignClient(value = "system-device",contextId = "deviceLog", path = "/device/deviceLog")
public interface DeviceLogFeignService {

    @GetMapping("/getOneDeviceLog/{id}")
    public Result getOneDeviceLog(@PathVariable(value = "id") Integer id);

    @PostMapping("/saveDeviceLog")
    Result saveDeviceLog(@RequestBody DeviceLog deviceLog);

    @PutMapping("/updateDeviceLog")
    Result updateDeviceLog(@RequestBody DeviceLog deviceLog);

    @DeleteMapping("/deleteDeviceLog/{id}")
    Result deleteDeviceLog(@PathVariable(value = "id") Integer id);

}
